package com.lzx.httpclient;

import java.io.OutputStream;

public abstract class AbstractBody {
	
	public static final String LR = "\r\n";
	
//	protected static String boundary = "---------------------------324392462611323";
	protected static String boundary = "---------------------------41184676334";
	
	private String mimeType;
	
	private String mediaType;
	
	private String subType;
	
	
	
	
	
	
	public abstract void writeTo(OutputStream os, boolean writeContent);
	
	
	public abstract long getContentLength();

	public String getMimeType() {
		return mimeType;
	}

	public void setMimeType(String mimeType) {
		this.mimeType = mimeType;
	}

	public String getMediaType() {
		return mediaType;
	}

	public void setMediaType(String mediaType) {
		this.mediaType = mediaType;
	}

	public String getSubType() {
		return subType;
	}

	public void setSubType(String subType) {
		this.subType = subType;
	}
	
	
	
	
	
	

}
